package com.zeratul.cloud.demo1.service.impl;

import com.zeratul.cloud.demo1.service.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Primary;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
@Slf4j
@Primary
public class UserServiceImpl implements IUserService {

    @Override
    @Async
    public void add(Integer id) {
        log.info("【新增用户】默认业务! {}", id);
    }
}
